//
//  LLColor.swift
//  LaiLang
//
//  Created by David on 2017/2/17.
//  Copyright © 2017年 David. All rights reserved.
//

import UIKit

class LLColor {
    static let colorTable:[(r: Int, g: Int, b: Int)] = [(38,38,38),(195,162,68),(207,117,120),(189,136,183),(123,201,200),(107,164,191),(102,116,139),(82,159,135),(144,162,78),(172,148,126),(196,122,99)]
    static func getColorFromTable(by: Int) -> UIColor?{
        if by >= 0 && by < colorTable.count{
            return UIColor(r: colorTable[by].r, g: colorTable[by].g, b: colorTable[by].b)
        }
        return nil
    }
}
